home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-25 | 1.3 KB | 55 lines | [TEXT/CWIE] |
- // ==================================================
- // UMacOSTools.h
- // Copyright (C) 1997 Mizutori Tetsuya
- // March 24, 1997, April 9, 1997.
- // ==================================================
- // All documents are pretty-printed in 10-point Geneva font.
-
- #pragma once
-
- #include <Finder.h>
-
- class UMacOSTools {
-
- public:
- UMacOSTools();
- ~UMacOSTools();
-
- // Check keyboard status wheather cmd-period is pressed.
- static Boolean IsCommandPeriod( void );
-
- // Check keyboard status wheather a modifier key is pressed.
- static Boolean IsModifierKeyPressed(
- Uint32 inModifierKey );
-
- static Boolean IsModifierKeyPressed(
- const EventRecord & inMacOSEvent,
- Uint32 inModifierKey );
-
- // Convert a four character code to a Pascal string and return a pointer to the string.
- static StringPtr FourCharCodeToPStr(
- FourCharCode inCode,
- StringPtr outString );
-
- // Convert an Pascal string to a four character code.
- static void PStrToFourCharCode(
- ConstStringPtr inString,
- FourCharCode & outCode );
-
- // Set a Finder flag.
- static void SetFinderFlag(
- FSSpec & ioMacFSSpec,
- Uint16 inFinderFlag,
- Boolean inSetting );
-
- // Return whether a Finder flag is on or off.
- static Boolean HasFinderFlag(
- FSSpec & inMacFSSpec,
- Uint16 inFinderFlag );
-
- protected:
-
- };
-
- // end of definitions
-